package test;

import java.util.TimerTask;

import server.AuctionServer;
import tcpClient.ClientTestInterface;
import domain.Auction;

public class CreateAuctionTimerTask extends TimerTask {
	
	private Auction auction;
	private LoadTestComponent loadTestComponent;
	private ClientTestInterface client;
	
	public CreateAuctionTimerTask(LoadTestComponent loadTestComponent, ClientTestInterface client) {
		super();
		this.loadTestComponent = loadTestComponent;
		this.client = client;
	}
	
	@Override
	public void run() {
		
		client.sendCommand("!create "+loadTestComponent.auctionDuration+" "+loadTestComponent.port);
		
		System.out.println(client.response());
	}

}
